package com.wanxi.test;

import java.util.Scanner;

public class Exam {
    public static void main(String[] args) {
        /**
         * 1.键盘录入成绩
         * 2.提示键盘录入
         * 3.接收数据
         * 4.根据接收的数据取判断在那个区间
         * 5.设定区间
         * 6.打印奖励
         */
        int numOneStart = 95;
        int numOneEnd = 100;
        int numTwoStart = 90;
        int numTwoEnd = 94;
        int numThreeStart = 80;
        int numThreeEnd = 89;

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入成绩");
        int num = scanner.nextInt();
        if (num >= numOneStart && num <= numOneEnd) {
            System.out.println("自行车");
        } else if (num >= numTwoStart && num <= numTwoEnd) {
            System.out.println("乐高");
        } else if (num >= numThreeStart && num <= numThreeEnd) {
            System.out.println("机器人");
        } else {
            System.out.println("炒肉");
        }
    }
}
